home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
comm
/
ambos
/
FileChecker.lha
/
FLC
/
Rexx
/
AddToFileList.DOpus
next >
Wrap
Text File
|
1995-04-26
|
1KB
|
49 lines
/*
$VER: DOpusToFilelist.rexx V0.1 © by Nils Görs
Add marked DOpus-Files to FileChecker.lst
*/
Listname = "dh2:ambos/externe/FileChecker/dupe.lst"
/* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
/* I need your ListName here !!! */
/**********************************************************/
NL = '0a'x
PARSE ARG Filename
OPTIONS RESULTS
String=Words(Filename)
IF ~OPEN(DName,ListName,Read) THEN
DO
say "Konnte" ListName "nicht öffnen!"
EXIT
END
Counter=1
DO WHILE Counter <= String
String2=Word(Filename,Counter)
Position=LASTPOS("/",String2) ; String2=DELSTR(String2,1,Position)
Position=LASTPOS(":",String2) ; String2=DELSTR(String2,1,Position)
CALL AddToList
Counter=Counter+1
END
CALL CLOSE(DName)
EXIT(0)
AddToList:
DO WHILE ~EOF(DName)
InString=READLN(DName)
IF INDEX(InString,String2) == 1 THEN
DO
say String2 "ist schon in der Liste vorhanden!"
CALL CLOSE(DName); CALL OPEN(DName,ListName,Read)
RETURN(5)
END
END
CALL WRITELN(DName,String2); CALL CLOSE(DName); CALL OPEN(DName,ListName,Read)
say String2 "wurde in die Liste aufgenommen!"
RETURN(0)